﻿Imports DAO
Imports DTO


Public Class NguoiDungBUS
    Public Function LayDanhSach() As List(Of NguoiDungDTO)
        Dim ndDAO As New NguoiDungDAO
        Return ndDAO.LayDanhSach
    End Function

    Public Function LayBang() As DataTable
        Dim ndDAO As New NguoiDungDAO
        Return ndDAO.LayBang
    End Function
    Public Function DangNhap(ByRef ndDTO As NguoiDungDTO) As Integer
        Dim ndDAO As New NguoiDungDAO
        Return ndDAO.DangNhap(ndDTO)
    End Function

    Public Function DoiMatKhau(ByVal ndDTO As NguoiDungDTO) As Integer
        Dim ndDAO As New NguoiDungDAO
        Return ndDAO.DoiMatKhau(ndDTO)
    End Function

    Public Function ThemNguoiDung(ByVal ndDTO As NguoiDungDTO) As Integer
        Dim ndDAO As New NguoiDungDAO
        Return ndDAO.ThemNguoiDung(ndDTO)
    End Function

    Public Function XoaNguoiDung(ByVal ndDTO As NguoiDungDTO) As Integer
        Dim ndDAO As New NguoiDungDAO
        Return ndDAO.XoaNguoiDung(ndDTO)
    End Function

    Public Function CapNhatNguoiDung(ByVal ndDTO As NguoiDungDTO) As Integer
        Dim ndDAO As New NguoiDungDAO
        Return ndDAO.CapNhatNguoiDung(ndDTO)
    End Function

End Class
